<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class GroupMasterLine extends TimeModel
{

    protected $name = "group_master_line";

    protected $deleteTime = "delete_time";

    //关联团长
    public function groupMaster()
    {
        return $this->belongsTo('\app\admin\model\GroupMaster', 'master_id', 'id');
    }
    //关联仓库
    public function theLibrary()
    {
        return $this->belongsTo('\app\admin\model\Library', 'library_id', 'id');
    }

    //团长人数
    public function getMasters()
    {

    }

    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用'];
    }
}